package com.kude.manager;

import com.kude.dao.ShopIntroductionDAO;
import com.kude.entity.Product;
import com.kude.entity.ShopIntroduction;
import com.kude.util.BeanFactory;

public class ShopIntroductionManager extends
		AbstractManager<ShopIntroduction, ShopIntroductionDAO> {

	ShopIntroductionDAO shopIntroductionDAO;
	public boolean isExist(ShopIntroduction obj) throws OperException {
		if (obj == null) {
			throw new OperException("产品对象obj不能为空");
		}
		if (obj.getShopId() == null) {
			return false;
		}
		if (dao.getById(obj.getShopId()) == null) {
			return false;
		}
		return true;
	}

	public void setShopIntroductionDAO(ShopIntroductionDAO shopIntroductionDAO) {
		this.dao = shopIntroductionDAO;
	}
}
